package org.ank.food;

import android.app.Activity;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;
//import org.ank.food.LaunchActivity;

public class DBCopyingHandler extends Handler{
	
	public TextView indicator;
	private Activity parent;
	
	public DBCopyingHandler(LaunchActivity p){
		this.parent = p;
	}
	
	@Override
	public void handleMessage(Message m){
		switch (m.what){
		case DBCopier.DB_COPY_FAIL_CODE :
//			indicator.setText(R.string.indicator_fail_text);
			break;
		case DBCopier.DB_COPY_SUCCESS_CODE :
//			indicator.setText(R.string.indicator_success_text);
			Intent intent = new Intent();
    		intent.setClass(parent.getApplicationContext(), ProfileChooseActivity.class);
    		parent.startActivity(intent);
    		parent.finish();
			break;
		}
	}
}